const state = {
	eventList:[]
}

const mutations = {
	setEventList(state,payload){
    // console.log(payload)
    if(payload.type==="initial"){
      state.eventList = payload.data
    }else{
      state.eventList = [
        ...state.eventList,
        ...payload.data
      ]
    }
  }
}

const actions = {

}

const getters = {

}

export default {
	namespaced: true,
	state,
	mutations,
	actions,
	getters
}